bufio.Scanner.buf (field)
16 uses
bufio (current package)
scan.go#L34: buf []byte // Buffer used as argument to split.
scan.go#L146: advance, token, err := s.split(s.buf[s.start:s.end], s.err != nil)
scan.go#L184: if s.start > 0 && (s.end == len(s.buf) || s.start > len(s.buf)/2) {
scan.go#L185: copy(s.buf, s.buf[s.start:s.end])
scan.go#L190: if s.end == len(s.buf) {
scan.go#L193: if len(s.buf) >= s.maxTokenSize || len(s.buf) > maxInt/2 {
scan.go#L197: newSize := len(s.buf) * 2
scan.go#L205: copy(newBuf, s.buf[s.start:s.end])
scan.go#L206: s.buf = newBuf
scan.go#L214: n, err := s.r.Read(s.buf[s.end:len(s.buf)])
scan.go#L215: if n < 0 || len(s.buf)-s.end < n {
scan.go#L271: s.buf = buf[0:cap(buf)]
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |